
//
//  BBDataModel.swift
//  BBetter
//
//  Created by Gmc on 2020/3/2.
//  Copyright © 2020 Gmc. All rights reserved.
//

import UIKit

class BBDataModel: NSObject {
    open var name:String = ""
    open var denominator = 0
    open var numerator = 0
    open var id = ""
    
    override init() {
        super.init()
    }
    
    init(dictionary:[String:Any]) {
        super.init()
        self.id = dictionary["_id"] as! String
        self.name = dictionary["name"] as! String
        self.denominator = dictionary["denominator"] as! Int
        self.numerator = dictionary["numerator"] as! Int
    }
    
    override func setValue(_ value: Any?, forUndefinedKey key: String) {
        
    }
}
